package com.class06.controller;

import com.class06.pojo.Student;
import com.class06.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.List;

@Controller
public class StudentController {

    @Autowired
    private StudentService studentService;


    public void  insertStudent(Student student) {
        studentService.addStudent(student);
    }

    public List<Student> queryStudent() {
        return studentService.queryStudent();
    }



}
